<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DepartmentsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$departments = [
    		[
    			'id' => 1,
    			'company_id' => 1,
    			'name' => '总经办',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 2,
    			'company_id' => 1,
    			'name' => '人事部',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 3,
    			'company_id' => 1,
    			'name' => '行政部',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 4,
    			'company_id' => 1,
    			'name' => '客户发展部',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 5,
    			'company_id' => 1,
    			'name' => '市场部',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 6,
    			'company_id' => 1,
    			'name' => '增值服务部',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],
		];

    	DB::table('departments')->insert($departments);
    }
}
